package com.atguigu.servicebase.exceptionhandler;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @title: GuLiException 自定义异常
 * @Author Y丶HS
 * @Date: 2022/9/21 17:58
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Api(value = "自定义异常处理")
public class GuLiException extends RuntimeException {
    /**
     * 状态码
     */
    @ApiModelProperty("状态码")
    private Integer code;
    /**
     * 消息
     */
    @ApiModelProperty("消息")
    private String msg;

}
